package com.ruoyi.generation3.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.generation3.mapper.StationAreaManagementGeneration3Mapper;
import com.ruoyi.generation3.domain.StationAreaManagementGeneration3;
import com.ruoyi.generation3.service.IStationAreaManagementGeneration3Service;

/**
 * 驻场片区3代码Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
@Service
public class StationAreaManagementGeneration3ServiceImpl implements IStationAreaManagementGeneration3Service 
{
    @Autowired
    private StationAreaManagementGeneration3Mapper stationAreaManagementGeneration3Mapper;

    /**
     * 查询驻场片区3代码
     * 
     * @param id 驻场片区3代码主键
     * @return 驻场片区3代码
     */
    @Override
    public StationAreaManagementGeneration3 selectStationAreaManagementGeneration3ById(Long id)
    {
        return stationAreaManagementGeneration3Mapper.selectStationAreaManagementGeneration3ById(id);
    }

    /**
     * 查询驻场片区3代码列表
     * 
     * @param stationAreaManagementGeneration3 驻场片区3代码
     * @return 驻场片区3代码
     */
    @Override
    public List<StationAreaManagementGeneration3> selectStationAreaManagementGeneration3List(StationAreaManagementGeneration3 stationAreaManagementGeneration3)
    {
        return stationAreaManagementGeneration3Mapper.selectStationAreaManagementGeneration3List(stationAreaManagementGeneration3);
    }

    /**
     * 新增驻场片区3代码
     * 
     * @param stationAreaManagementGeneration3 驻场片区3代码
     * @return 结果
     */
    @Override
    public int insertStationAreaManagementGeneration3(StationAreaManagementGeneration3 stationAreaManagementGeneration3)
    {
        return stationAreaManagementGeneration3Mapper.insertStationAreaManagementGeneration3(stationAreaManagementGeneration3);
    }

    /**
     * 修改驻场片区3代码
     * 
     * @param stationAreaManagementGeneration3 驻场片区3代码
     * @return 结果
     */
    @Override
    public int updateStationAreaManagementGeneration3(StationAreaManagementGeneration3 stationAreaManagementGeneration3)
    {
        return stationAreaManagementGeneration3Mapper.updateStationAreaManagementGeneration3(stationAreaManagementGeneration3);
    }

    /**
     * 批量删除驻场片区3代码
     * 
     * @param ids 需要删除的驻场片区3代码主键
     * @return 结果
     */
    @Override
    public int deleteStationAreaManagementGeneration3ByIds(Long[] ids)
    {
        return stationAreaManagementGeneration3Mapper.deleteStationAreaManagementGeneration3ByIds(ids);
    }

    /**
     * 删除驻场片区3代码信息
     * 
     * @param id 驻场片区3代码主键
     * @return 结果
     */
    @Override
    public int deleteStationAreaManagementGeneration3ById(Long id)
    {
        return stationAreaManagementGeneration3Mapper.deleteStationAreaManagementGeneration3ById(id);
    }

    @Override
    public List<String> selectAreaNameGeneration3() {
        return stationAreaManagementGeneration3Mapper.selectAreaNameGeneration3();
    }

    @Override
    public List<String> selectGetLocationGeneration3() {
        return stationAreaManagementGeneration3Mapper.selectGetLocationGeneration3();
    }
}
